// 导入类型、接口、模块、组件、样式
import { FC } from "react";
// 路由
import routes from "./router"; // 改3
import { useRoutes } from "react-router-dom";
// 配置国际化
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
// 全局样式
import "@/styles/reset.less";
import "@/styles/antd.less";

interface Props {}
const App: FC<Props> = () => {
  return (
    <ConfigProvider
      locale={zhCN}
      theme={{
        token: {
          colorPrimary: "#FF4466",
        },
      }}
    >
      {useRoutes(routes)}
    </ConfigProvider>
  );
};

export default App;
